import request from '@/utils/request'
// 列表
export function getList(data) {
    return request({
        url: '/Operations_pass_business_config/pass_business_select',
        method: 'post',
        data: data
    })
}

// 获取门店
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}

// 新增编辑保存
export function save(data, url) {
    return request({
        url: url,
        method: 'post',
        data: data
    })
}
// 删除套餐
export function del(data) {
    return request({
        url: '/Operations_pass_business_config/pass_business_delete',
        method: 'post',
        data: data
    })
}
// 启用停用
export function state(data) {
    return request({
        url: '/Operations_pass_business_config/pass_business_enable',
        method: 'post',
        data: data
    })
}
//商品口碑详情
export function product(data) {
    return request({
        url: '/Operations_vouchers_config/product_info',
        method: 'post',
        data: data
    })
}
export function saveStore(data) {
    return request({
        url: '/Operations_pass_business_config/mapping_store_config',
        method: 'post',
        data: data
    })
}